<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_merchants_to_member_order_detail-add-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单总编号：</label>
			<div class="layui-input-block">
				<input id="orderTotalCode" name="orderTotalCode" placeholder="请输入订单总编号"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单子编号：</label>
			<div class="layui-input-block">
				<input id="orderChildCode" name="orderChildCode" placeholder="请输入订单子编号"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品来源 0：供应商1：自营：</label>
			<div class="layui-input-block">
				<input id="goodsSource" name="goodsSource" placeholder="请输入商品来源 0：供应商1：自营"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商ID：</label>
			<div class="layui-input-block">
				<input id="supplyId" name="supplyId" placeholder="请输入供应商ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商户ID：</label>
			<div class="layui-input-block">
				<input id="merchantsId" name="merchantsId" placeholder="请输入商户ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品编码：</label>
			<div class="layui-input-block">
				<input id="goodsCode" name="goodsCode" placeholder="请输入商品编码"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">属性ID：</label>
			<div class="layui-input-block">
				<input id="warehouseId" name="warehouseId" placeholder="请输入属性ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品名称：</label>
			<div class="layui-input-block">
				<input id="goodsName" name="goodsName" placeholder="请输入商品名称"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供货价：</label>
			<div class="layui-input-block">
				<input id="supplyPrice" name="supplyPrice" placeholder="请输入供货价"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品数量：</label>
			<div class="layui-input-block">
				<input id="goodsNumber" name="goodsNumber" placeholder="请输入商品数量"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品图片：</label>
			<div class="layui-input-block">
				<input id="goodsImages" name="goodsImages" placeholder="请输入商品图片"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品规格json：</label>
			<div class="layui-input-block">
				<input id="goodsJson" name="goodsJson" placeholder="请输入商品规格json"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品单价：</label>
			<div class="layui-input-block">
				<input id="goodsUnitPrice" name="goodsUnitPrice" placeholder="请输入商品单价"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">实际支付金额：</label>
			<div class="layui-input-block">
				<input id="memberRealPay" name="memberRealPay" placeholder="请输入实际支付金额"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">单个商品退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败：</label>
			<div class="layui-input-block">
				<input id="goodsRefundState" name="goodsRefundState" placeholder="请输入单个商品退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">库存回退状态 0.不需回退 1:待回退2.回退成功3.回退失败：</label>
			<div class="layui-input-block">
				<input id="inventoryBackState" name="inventoryBackState" placeholder="请输入库存回退状态 0.不需回退 1:待回退2.回退成功3.回退失败"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">申请退款时间：</label>
			<div class="layui-input-block">
				<input id="refundApplyTime" name="refundApplyTime" placeholder="请输入申请退款时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加时间：</label>
			<div class="layui-input-block">
				<input id="createTime" name="createTime" placeholder="请输入添加时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">修改时间：</label>
			<div class="layui-input-block">
				<input id="updateTime" name="updateTime" placeholder="请输入修改时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input id="deleteFlag" name="deleteFlag" placeholder="请输入"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_merchants_to_member_order_detail-add">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
                 			laydate.render({
				elem : '#refundApplyTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
  			//监听提交
			form.on('submit(shop_merchants_to_member_order_detail-add)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/merchants_to_member_order_detail/save", data.field);
				return false;
			});
		});
	</script>
</body>
</html>